﻿using JMcms.Common;
using JMcms.Web.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace JMcms.Web.Plugin.Job
{
   public class job_apply : BasePage
    {
        protected int jobId;
        protected JMcms.Web.Plugin.Job.Model.job model = new JMcms.Web.Plugin.Job.Model.job();
        protected override void ShowPage()
        {
            this.jobId = JMRequest.GetQueryInt("id");
            JMcms.Web.Plugin.Job.BLL.job job = new JMcms.Web.Plugin.Job.BLL.job();
            bool flag = this.jobId > 0;
            if (flag)
            {
                bool flag2 = !job.Exists(this.jobId);
                if (flag2)
                {
                    HttpContext.Current.Response.Redirect(base.linkurl("error", new object[]
                    {
                        "?msg=" + Utils.UrlEncode("出错啦，您要浏览的页面不存在或已删除啦！")
                    }));
                    return;
                }
            }
            this.model = job.GetModel(this.jobId);
        }
    }
}
